<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>
	<h:form>
		<p:toolbar>
			<p:toolbarGroup align="left">
	    	Bienvenido  
	        <h:outputText value="#{MBCarro.usuario}" />
				<p:separator />
					<p:commandButton value="realizar compra"
					type="submit" icon="ui-icon-cart" action="#{MBDetalle.goToCheck()}" />
				<p:separator />
	  		Items en el carro:
	  		<h:outputText value="#{MBDetalle.itemsCarro}" /> 
	  		Total:
	  		<h:outputText value="#{MBDetalle.total}" />

			</p:toolbarGroup>

			<p:toolbarGroup align="right">
				<p:menuButton value="Opciones">
					<p:menuitem value="Login" url="login.jsf" />
					<p:menuitem value="Registrarse" url="register.jsf" />
					<p:menuitem value="Log out" action="#{MBDetalle.logout()}" />
				</p:menuButton>
			</p:toolbarGroup>

		</p:toolbar>
	</h:form>

</h:body>
</html>